<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no" />
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>我的库存</title>
    <link rel="stylesheet" href="../../css/base.css">
    <link rel="stylesheet" href="../../css/mywholesale/index.css">
    <script src="../../js/jquery-2.2.3.min.js"></script>
    <script src="../../js/rem.js"></script>
    <script src="../../js/common.js"></script>
    <style>
    .head{
        position: relative;
    }
    .item-price{
        float:left;
        margin-right: 0.6rem;
    }
    .yiqianbao{
        width: 95%;
        margin: 0 auto;
        height: 0.8rem;
        background: #e56969;
        border-radius: 0.1rem;
        margin-top: 0.1rem;
    }
    .balance{
        width: 100%;
        text-align: center;
        color: #ffffff;
        font-size: 0.16rem;
        line-height: 0.8rem;
    }
    .h-right{
        position: absolute;
        font-size: 0.16rem;
        line-height: 0.4rem;
        color: #000;
        right: 0.15rem;
    }
    .deal-ul{
        width: 95%;
        padding: 0.1px;
        margin: 0.1rem auto;
        background-color: #ffffff;
        border-radius: 0.1rem;
        /* border: 1px solid yellow; */
        /* height: 1.5rem; */
        box-shadow: 1px 0px 3px 0px #adadad;
    }
    .deal-ul{
        width: 90%;
        margin: 0.2rem auto 0 auto;
        /* border: 1px solid blue; */
        padding: 0.1rem;
        overflow: hidden;
    }
    .deal-ul li{
        font-size: 0.16rem;
        color: #000;
        line-height: 0.2rem
    }
    </style>
</head>

<body style="background-color: #F5F5F5">
    <div class="head">
        <a href="javascript:history.back(-1)">
            <div class="h-left"></div>
        </a>
        <div class="h-middle" style="margin: 0 auto; line-height:0.4rem;">交易明细</div>
        <div class="h-right"></div>
    </div>
    <!-- <div style="height: .44rem;"></div> -->
    <div class="deal-detail">
        
    </div>
</body>
<script>
    
    $.ajax({
        url: SURL + '/jfd/logCash/tradingRecord',
        type: 'post',
        data: {
            fromId: localStorage.getItem('userId')
        },
        dataType: 'json',
        success: res => {
            console.log(res)
            var res = res.reverse();
            res.forEach(element => {
                $('.deal-detail').append(`
                <ul class="deal-ul">
                    <li>创建时间：${element.createTime}</li>
                    <li>流水标志：${element.cashType}</li>
                    <li>操作金额：${element.preCash}</li>
                    <li>变动金额：${element.cash}</li>
                    <li>发起用户：${element.fromName}</li>
                    <li>目标用户：${element.userName}</li>

                </ul>
                `)
            });
        }
    })
</script>

</html>